<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSignSetTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sign_set', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->default('')->comment('名称');
            $table->integer('project_id')->default(0)->comment('项目id');
            $table->integer('build_form')->default(0)->comment('建筑形式');
            $table->integer('supply_form')->default(0)->comment('补偿方式');
            $table->integer('village_id')->default(0)->comment('村庄id');
            $table->integer('number')->default(0)->comment('份数');
            $table->string('couplet')->default('')->comment('右侧联');
            $table->string('number_header')->default('')->comment('编号头');
            $table->longText('content')->comment('内容');
            $table->integer('sign_set_type')->comment('模板类型');
            $table->integer('page')->comment('页数');
            $table->timestamps();
            $table->softDeletes();
        });
        \Illuminate\Support\Facades\DB::statement("ALTER TABLE `sign_set` comment '签约配置表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sign_set');
    }
}
